import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { Provider } from "react-redux";
import { store, persistor } from "./stores/index.ts";
import { PersistGate } from 'redux-persist/integration/react';
import zh_CN from "antd/es/locale/zh_CN";
import { ConfigProvider } from "antd";

createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <ConfigProvider locale={zh_CN}>
        <App />
      </ConfigProvider>
    </PersistGate>
  </Provider>
)
